# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Test-Simple
pkgname=perl-${_realname}
pkgver=1.302168
pkgrel=1
pkgdesc="Basic utilities for writing tests"
arch=('any')
url="https://metacpan.org/release/Test-Simple"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('02f6132b2062abb23474b0fc02e70a0fbbf7bf581a6010e64c08891530447ffa')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
